//
//  UITool.h
//  WeCommunity
//
//  Created by mac on 2017/6/14.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UITool : NSObject

#pragma mark - 获取当前屏幕显示的viewcontroller
+ (UIViewController *)getCurrentVC;

#pragma mark - alert提醒
+(void)showHudWithText:(NSString *)text
              withView:(UIView *)view;

-(void)showLoadingHudWithHText:(NSString *)text
                      withView:(UIView *)view;

-(void)hiddenLoadingHudwithView:(UIView *)view;

#pragma mark - 设置状态栏
+(void)setStatusBarIsWhite:(BOOL)isWhite;

#pragma mark - textField 长度限制
+(void)limitTextFieldLength:(NSInteger)maxLimit
                  textField:(UITextField *)textField;

#pragma mark - 拷贝到粘贴板
+(void)textCopyWithString:(NSString *)string;

#pragma mark - 让所有控制器出栈
+(void)removeAllController;

#pragma mark - 设置SD框架解压缩图片
+(void)setSDWebDecompression:(BOOL)decompression;

#pragma mark - 一般不传title title有默认内容
+(void)systemAlertWithTitle:(NSString *)title
                 andMessage:(NSString *)message
              actionTextOne:(NSString *)actionTextOne
              actionTextTwo:(NSString *)actionTextTwo
             actionOneBlock:(void(^)())actionOneBlock
             actionTwoBlock:(void(^)())actionTwoBlock;



@end
